package com.woniu.mapper.mallSystem;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.woniu.model.mallSystem.dto.OrderDto;
import com.woniu.model.mallSystem.entity.Order;
import com.woniu.model.mallSystem.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lzj
 * @since 2023-10-19
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 导出订单列表
     */
    List<OrderVo> findAll();



    Page<OrderVo> getPageInfo(@Param("pagInfo") Page pagInfo, @Param("orderStatus") Integer orderStatus);

    OrderVo getById(Integer orderId);

    List<OrderDto> getByIds(@Param("ids") List<Integer> ids);
}
